package com.example.demo.pojo;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {
    @NotNull//格式不为空
    String account;
//    @Pattern(regexp = "^\\S{1,10}$"),自定义格式,需在用到User的地方加上@Validated才会生效
    String password;

}
